
package com.ray.tcc.service;

import java.util.List;

import com.ray.tcc.table.entity.Application;
import com.zjhc.flyhong.common.datastructure.TreeNode;
import com.zjhc.flyhong.common.function.operator.LoginUser;
import com.zjhc.flyhong.common.function.operator.PageDto;
import com.zjhc.flyhong.common.web.Result;

/**
 * <p>Description: .</p>
 *
 * @author ray
 * @version 1.0
 * @date 2017/10/20 16:34
 * @since JDK 1.8
 */
public interface ApplicationService {

	/**
	 * 新增应用
	 * @param params
	 * @param user
	 * @return
	 */
	Result<Object> addApplication(Application params, LoginUser user);
	/**
	 * 应用查询
	 * @param id
	 * @param user
	 * @return
	 */


	Application queryApplication(String id, LoginUser user);

	/**
	 * 应用修改
	 * @param params
	 * @param user
	 * @return
	 */
	Result<Object> updateApplication(Application params, LoginUser user);
	/**
	 * 应用删除
	 * @param id
	 * @param user
	 * @return
	 */
	Result<Object> deleteApplication(String id, LoginUser user);
	/**
	 * 分页查询
	 * @param params
	 * @param page
	 * @param user
	 * @return
	 */
	PageDto<Application> queryApplication(Application params, PageDto<Application> page, LoginUser user);
	
	/**
	 * 查询使用状态的应用
	 * @return
	 */
	List<TreeNode> queryApplicationList(LoginUser user);
   
}
